<script src="http://www.wowhead.com/widgets/power.js"></script> 
<link href="./profile.css" type="text/css" rel="stylesheet">
<div class="tabber" id="tab1">

<div class="tabbertab" title="Profile">

<div id="layout_main_top">

</div>
<div id="layout_main">

<div class="profile">

	<div class="picture">

	</div>
	<div class="namebar">
		<span class='prefix'>{$profile.characterinfo.character.prefix}</span><br />
		<span class='name'>{$profile.characterinfo.character.name}</span><span class='suffix'>{$profile.characterinfo.character.suffix}</span><br />
		<span class='guild'>{$profile.characterinfo.character.guildname}</span><br />
		<span class='level'>Level {$profile.characterinfo.character.level} {$profile.characterinfo.character.race} {$profile.characterinfo.character.class}</span><br />
	</div>

	<div class="character_tab_container">
		<h1>Profile</h1>
		<div class="item_bar left">
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.0.id}'><img src='{$items.0.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.1.id}'><img src='{$items.1.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.2.id}'><img src='{$items.2.icon}' /></a>
			</div>
			<div class="item_container center"> 
				<a href='http://www.wowhead.com/?item={$items.14.id}'><img src='{$items.14.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.4.id}'><img src='{$items.4.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.3.id}'><img src='{$items.3.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.18.id}'><img src='{$items.18.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.8.id}'><img src='{$items.8.icon}' /></a>
			</div>
		</div>
		
		<div class="item_bar right">
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.9.id}'><img src='{$items.9.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.5.id}'><img src='{$items.5.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.6.id}'><img src='{$items.6.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.7.id}'><img src='{$items.7.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.10.id}'><img src='{$items.10.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.11.id}'><img src='{$items.11.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.12.id}'><img src='{$items.12.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.13.id}'><img src='{$items.13.icon}' /></a>
			</div>
		</div>
		
		<div class="character_tabs">
				<div class="main">
					<div class="talents left">
						<span class="title">talent specialization:</span>
						<br />
						<span class="spec">PROTECTION</span>
						<br />
						<span class="talents">{$profile.characterinfo.charactertab.talentspec.treeone} / {$profile.characterinfo.charactertab.talentspec.treetwo} / {$profile.characterinfo.charactertab.talentspec.treethree}</span>
						
						
					</div>
					<div class="resistances right">
						<span class="title">resistances:</span>
						<br />
						<br />
						<div class="resistance_line center">
							<div class="title yellow left text-right" style="width: 50px">arcane</div><div class="resistance_value right">{$profile.characterinfo.charactertab.resistances.arcane.value}</div>
						</div>
						<div class="resistance_line center">
							<div class="title yellow left text-right" style="width: 50px">fire</div><div class="resistance_value right">{$profile.characterinfo.charactertab.resistances.fire.value}</div>
						</div>
						<div class="resistance_line center">
							<div class="title yellow left text-right" style="width: 50px">nature</div><div class="resistance_value right">{$profile.characterinfo.charactertab.resistances.nature.value}</div>
						</div>
						<div class="resistance_line center">
							<div class="title yellow left text-right" style="width: 50px">frost</div><div class="resistance_value right">{$profile.characterinfo.charactertab.resistances.frost.value}</div>
						</div>
						<div class="resistance_line center">
							<div class="title yellow left text-right" style="width: 50px">shadow</div><div class="resistance_value right">{$profile.characterinfo.charactertab.resistances.shadow.value}</div>
						</div>
						<div class="resistance_line center">
							<div class="title yellow left text-right" style="width: 50px">holy</div><div class="resistance_value right">{$profile.characterinfo.charactertab.resistances.holy.value}</div>
						</div>
					</div>
					<div class="professions left">
						<span class="title">primary professions:</span>
						<br />
						<a class="prof-data">{$profile.characterinfo.charactertab.professions.skill.0.value} / {$profile.characterinfo.charactertab.professions.skill.0.max}</a>
						<span class="profession title yellow">{$profile.characterinfo.charactertab.professions.skill.0.name}</span>
						<div class="bar_container center"><div class="bar" style="width: {math equation="(y / x) * 100" x=$profile.characterinfo.charactertab.professions.skill.0.max y=$profile.characterinfo.charactertab.professions.skill.0.value}%">	</div></div>
						
						<a class="prof-data">{$profile.characterinfo.charactertab.professions.skill.1.value} / {$profile.characterinfo.charactertab.professions.skill.1.max}</a>						
						<span class="profession title yellow">{$profile.characterinfo.charactertab.professions.skill.1.name}</span>
						<div class="bar_container center"><div class="bar" style="width: {math equation="(y / x) * 100" x=$profile.characterinfo.charactertab.professions.skill.1.max y=$profile.characterinfo.charactertab.professions.skill.1.value}%">	</div></div>
					</div>

					<div class="left center characterbars">
						
					<div class="center" style=" margin-top: 5px;">
						<div class="left" style="width: 70px; text-align: right; margin-right: 8px;">
							<span class="profession title left">health:</span>
						</div>
						<div class="bar_container left"><a class="bar-data">{$profile.characterinfo.charactertab.characterbars.health.effective}</a><div class="bar" style="width: 100%">	</div></div>
					</div>
					<br>
					<div class="center" style=" margin-top: 10px;">
						<div class="left" style="width: 70px; text-align: right; margin-right: 8px;">
							<span class="profession title left">{if $profile.characterinfo.charactertab.characterbars.secondbar.type eq "m"}mana{elseif $profile.characterinfo.charactertab.characterbars.secondbar.type eq "r"}rage{else}energy{/if}:</span>
						</div>
						<div class="bar_container left"><a class="bar-data">{$profile.characterinfo.charactertab.characterbars.secondbar.effective}</a><div class="bar {$profile.characterinfo.charactertab.characterbars.secondbar.type}" style="width: 100%">	</div></div>
					</div>
					
					</div>
					<div class="stats left center">
						<div class="left stats_container">
							<span class="title">base:</span>
							<br />
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Strength</div><div class="smaller right">{$profile.characterinfo.charactertab.basestats.strength.effective}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Agility</div><div class="smaller right">{$profile.characterinfo.charactertab.basestats.agility.effective}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Stamina</div><div class="smaller right">{$profile.characterinfo.charactertab.basestats.stamina.effective}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Intellect</div><div class="smaller right">{$profile.characterinfo.charactertab.basestats.intellect.effective}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Spirit</div><div class="smaller right">{$profile.characterinfo.charactertab.basestats.spirit.effective}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Armor</div><div class="smaller right">{$profile.characterinfo.charactertab.basestats.armor.effective}</div>
							</div>
						</div>

						<div class="left stats_container" id="ranged" onclick="$('melee').toggle(); $('ranged').toggle()">
							<span class="title" >ranged:</span>
							<br />
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Damage</div><div class="smaller right">{$profile.characterinfo.charactertab.ranged.damage.min} / {$profile.characterinfo.charactertab.ranged.damage.max}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Speed</div><div class="smaller right">{$profile.characterinfo.charactertab.ranged.speed.value}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Power</div><div class="smaller right">{$profile.characterinfo.charactertab.ranged.power.effective}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Hit Rating</div><div class="smaller right">{$profile.characterinfo.charactertab.ranged.hitrating.value}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Crit %</div><div class="smaller right">{$profile.characterinfo.charactertab.ranged.critchance.percent}%</div>
							</div>
						</div>						

						
						<div class="left stats_container" id="melee" onclick="$('melee').toggle(); $('ranged').toggle()">
							<span class="title">melee:</span>
							<br />
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Damage</div><div class="smaller right">{$profile.characterinfo.charactertab.melee.mainhanddamage.min} / {$profile.characterinfo.charactertab.melee.mainhanddamage.max}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Speed</div><div class="smaller right">{$profile.characterinfo.charactertab.melee.mainhandspeed.value}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Power</div><div class="smaller right">{$profile.characterinfo.charactertab.melee.power.effective}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Hit Rating</div><div class="smaller right">{$profile.characterinfo.charactertab.melee.hitrating.value}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Crit %</div><div class="smaller right">{$profile.characterinfo.charactertab.melee.critchance.percent}%</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Expertise</div><div class="smaller right">{$profile.characterinfo.charactertab.melee.expertise.value}</div>
							</div>
						</div>
							
						<div class="left stats_container">
							<span class="title">spell:</span>
							<br />
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">+Damage</div><div class="smaller right">{$profile.characterinfo.charactertab.spell.damage.min} / {$profile.characterinfo.charactertab.ranged.damage.max}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">+Healing</div><div class="smaller right">{$profile.characterinfo.charactertab.spell.bonushealing.value}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Hit Rating</div><div class="smaller right">{$profile.characterinfo.charactertab.spell.hitrating.value}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Crit %</div><div class="smaller right">{$profile.characterinfo.charactertab.ranged.hitrating.value}</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Penetration</div><div class="smaller right">{$profile.characterinfo.charactertab.spell.penetration.value}%</div>
							</div>
							<div class="stats_line center">
								<div class="smaller yellow left" style="width: 50px">Mana Regen</div><div class="smaller right">{$profile.characterinfo.charactertab.spell.manaregen.notcasting}%</div>
							</div>
						</div>
											
					</div>
					
				</div>
		</div>
		
		<div class="item_bar_bottom">
			<div class="item_container left center" style="margin-left: 75px;">
				<a href='http://www.wowhead.com/?item={$items.15.id}'><img src='{$items.15.icon}' /></a>
			</div>
			<div class="item_container right center"  style="margin-right: 75px;">
				<a href='http://www.wowhead.com/?item={$items.16.id}'><img src='{$items.16.icon}' /></a>
			</div>
			<div class="item_container center">
				<a href='http://www.wowhead.com/?item={$items.17.id}'><img src='{$items.17.icon}' /></a>
			</div>
		</div>

		
		
		<div style="clear: both;"></div>
	</div>
	<script>
	$('ranged').hide();
	</script>
</div>

</div>
<div id="layout_main_bottom">

</div>
</div>